/*
package com.itheima.health.consumer;


import com.aliyuncs.CommonRequest;
import com.aliyuncs.CommonResponse;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.IAcsClient;
import com.aliyuncs.exceptions.ClientException;
import com.aliyuncs.exceptions.ServerException;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.profile.DefaultProfile;
import com.itheima.health.common.RocketMQConst;
import com.itheima.health.message.SmsTask;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RocketMQMessageListener(topic = RocketMQConst.TOPIC_SMS_SEND, consumerGroup = "sms-send-consumer")
public class SmsSendConsumer implements RocketMQListener<SmsTask> {

    @Autowired
    private RedisTemplate redisTemplate;
  // private IAcsClient acsClient = new DefaultAcsClient(DefaultProfile.getProfile("cn-hangzhou", "LTAI4G84y563F7dWRMXEf3FD", "cpAh4H7ZggJslWlXXxRrQ2QSdrwe6K"));

    public void onMessage(SmsTask smsTask) {

        log.info("[短息验证码]businessType:{},{},{}", smsTask.getBusinessType(),smsTask.getPhone(),smsTask.getContent());
       */
/* CommonRequest request = new CommonRequest();
        request.setSysMethod(MethodType.POST);
        request.setSysDomain("dysmsapi.aliyuncs.com");
        request.setSysVersion("2017-05-25");
        request.setSysAction("SendSms");
        request.putQueryParameter("RegionId", "cn-hangzhou");
        request.putQueryParameter("PhoneNumbers", smsTask.getPhone());
        request.putQueryParameter("SignName", "黑马旅游");
        request.putQueryParameter("TemplateCode", "SMS_208637365");
        request.putQueryParameter("TemplateParam", "	{\"assertCode\":\"" + smsTask.getContent() + "\"}");
        try {
            CommonResponse response = acsClient.getCommonResponse(request);
            log.info("[短信-发送验证码]response:{}", response.getData());
        } catch (ServerException e) {
            e.printStackTrace();
        } catch (ClientException e) {
            log.error("[短信-发送验证码]", e);
        }*//*

    }

}
*/
